package d1123.r214.num07;

import java.util.HashSet;
import java.util.Set;

public class Demo02 {
    public static void main(String[] args){
        Student stu1=new Student("张三","1101");
        Student stu2=new Student("张三","1101");
        Student stu3=new Student("李四","1102");
        Student stu4=new Student("王五","1103");
        Set<Student> set=new HashSet<>();
        set.add(stu1);
        set.add(stu1);
        set.add(stu2);
        set.add(stu3);
        set.add(stu4);
        System.out.println(set);
    }
}
